package com.zh.service.impl;

import java.util.List;

import com.zh.dao.UserDao;
import com.zh.dao.impl.UserDaoImpl;
import com.zh.model.User;
import com.zh.service.UserService;

public class UserServiceImpl implements UserService {
	
	private UserDao userDao = new UserDaoImpl();
	
	@Override
	public void add(User user) {
		userDao.add(user);
	}

	@Override
	public void mod(User user) {
		userDao.mod(user);
	}

	@Override
	public void del(int id) {
		userDao.del(id);
	}

	@Override
	public List query(User user) {
		return userDao.query(user);
	}

	@Override
	public int login(User user) {
		return userDao.login(user);
	}

}
